package test;

import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;


 class Tom {
	private int x=120;
	protected int y=20;
	int z=11;
	private void f(){
		x=200;
		System.out.println(x);
	}
	void g(){
		x=200;
		System.out.println(x);
	}
}
public class A{
	public static void main(String args[]){
		Tom tom=new Tom();
		//tom.x=22;
		tom.y=33;
		tom.z=55;
		//tom.f();
		tom.g();
	}
}
//代码1与4错误  因为是Tom的private变量 只能在Tom里面用